import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { RoleQuery, RolePageResult, RoleForm } from './types';

/**
 * 编辑
 *
 * @param data
 */
export function updateVoice(data: any) {
  return request({
    url: '/api/app/voiceword/voicewordupdate',
    method: 'post',
    data
  });
}

/**
 * 添加
 *
 * @param data
 */
export function addVoice(data: any) {
  return request({
    url: '/api/app/voiceword/voicewordadd',
    method: 'post',
    data
  });
}


/**
 * 获取List
 *
 * @param data
 */
export function getVoiceList(data: any) {
  return request({
    url: '/api/app/voiceword/voicewordlist',
    method: 'post',
    data
  });
}

/**
 * 删除List
 *
 * @param data
 */
export function deleteListVoice(data: any) {
  return request({
    url: '/api/app/voiceword/voiceworddelete',
    method: 'post',
    data
  });
}

/**
 * 查询普通设备
 *
 * @param data
 */
export function getVoiceById(data: any) {
  return request({
    url: '/api/app/voiceword/voicewordfindbyid',
    method: 'post',
    data
  });
}

/**
 * 状态修改
 *
 * @param data
 */
export function updateStateVoice(data: any) {
  return request({
    url: '/api/app/voiceword/voicewordbystate',
    method: 'post',
    data
  });
}

